package com.scf.guaranty.service;


import com.github.pagehelper.PageInfo;
import com.scf.guaranty.entity.Guaranty;
import com.scf.uitl.ResponseResult;

import java.util.List;

/**
 * 担保物管理表(Guaranty)表服务接口
 *
 * @author makejava
 * @since 2021-11-12 17:13:00
 */
public interface GuarantyService {
    PageInfo<Guaranty> getAll(int pageNum, int pageSize);

    void add(Guaranty guaranty);

    void update(Guaranty guaranty);

    void deleteById(int id);

    PageInfo<Guaranty> getByCondition(String name, String type, int pageNum, int pageSize);

    PageInfo<Guaranty> getByApproval(String status,String name, String type, int pageNum, int pageSize);

    List<Guaranty> getById(int id);

    void pass(int id);

    void reject(int id);
}
